﻿@model dynamic
<h1>@Html.TitleForPage(T("Change Password").ToString()) </h1>
<p>@T("Use the form below to change your password.")</p>
<p>@T("New passwords are required to be a minimum of {0} characters in length.", ViewData["PasswordLength"]) </p>
@Html.ValidationSummary(T("Password change was unsuccessful. Please correct the errors and try again.").ToString(), new { @class = "text-error" })
@using (Html.BeginFormAntiForgeryPost()) { 
    <fieldset>
        <legend>@T("Account Information")</legend>
        <div>
            <label for="currentPassword">@T("Current password")</label>
            <div class="input-prepend">
                <span class="add-on"><i class="icon-lock"></i></span>
                @Html.Password("currentPassword")
            </div>
            @Html.ValidationMessage("currentPassword", new { @class = "text-error" })
        </div>
        <div>
            <label for="newPassword">@T("New password")</label>
            <div class="input-prepend">
                <span class="add-on"><i class="icon-lock"></i></span>
                @Html.Password("newPassword")
            </div>
            @Html.ValidationMessage("newPassword", new { @class = "text-error" })
        </div>
        <div>
            <label for="confirmPassword">@T("Confirm new password")</label>
            <div class="input-prepend">
                <span class="add-on"><i class="icon-lock"></i></span>
                @Html.Password("confirmPassword")
            </div>
            @Html.ValidationMessage("confirmPassword", new { @class = "text-error" })
        </div>
        <div class="form-actions">
            <button class="btn btn-primary" type="submit">@T("Change Password")</button>
        </div>
    </fieldset>
} 